<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<%@ include file="/WEB-INF/view-system/include/contentTaglib.jsp"%>
<head>
	<title>系统操作日志</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script src="${ctxStaticSystem }/js/sysLog/sysLog.js" type="text/javascript"></script>
</head>
<tags:dataSet id="sysLogSet">
	<tags:dataField name="sysLogKey" width="0%" display=""/>
	<tags:dataField name="staffId" width="8%" display="员工ID"/>
	<tags:dataField name="staffName" width="6%" display="员工姓名"/>
	<tags:dataField name="chalType" width="5%" display="渠道类型"/>
	<tags:dataField name="businessType" width="5%" display="业务类型"/>
	<tags:dataField name="objName" width="10%" display="对象名称" />
	<tags:dataField name="objKeyValue" width="10%" display="对象关键值" />
	<tags:dataField name="objProperties" width="10%" display="对象属性"/>
	<tags:dataField name="updPreValue" width="13%" display="修改前值"/>
	<tags:dataField name="updAftValue" width="13%" display="修改后值"/>
	<tags:dataField name="operationDate" width="10%" display="操作时间"/>
</tags:dataSet>
<!-- 系统操作日志表查询 -->
<tags:ajax id="querySysLogListAjax" url="${ctx }/ldp/sysLog/syslogList" autoSend='false' type='post'
 	contentType="application/x-www-form-urlencoded" formSubmit="true"
	formQuery="#sysLogTableFrm" onSuccess="sysLogEvents.onTableLoadSucc"/>
<body>
<tags:boards>
		<tags:board width="100%" boardTitle="系统操作日志">
			<form id="sysLogTableFrm" class='m-cust'>
				<div class="row">
					<div class="col-md-3 form-group ">
						<div class="col-md-4 item">
							<label class='m-label'>开始日期:</label>
						</div>
						<div class="col-md-8">
							<tags:datepicker dateFormat="yyyy-MM-dd" name="startDate"
								dateType="date" id="startDate" readonly="true" />
						</div>
					</div>
					<div class="col-md-3">
						<div class="col-md-4 item">
							<label class='m-label'>结束日期:</label>
						</div>
						<div class="col-md-8">
							<tags:datepicker dateFormat="yyyy-MM-dd" name="endDate"
								dateType="date" id="endDate" readonly="true" />
						</div>
					</div>
					<div class="col-md-3 ">
						<div class="col-md-4 item">
							<label class='m-label'>渠道类型:</label>
						</div>
						<div class="col-md-8">
							<select name="chalType" id="chalType" class="form-control">
								<option value=""></option>
								<c:forEach items="${cts}" var="ct">
									<option value="${ct.codeInfoValue}">${ct.codeInfoName}</option>
								</c:forEach>
							</select>
						</div>
					</div>
					<div class="col-md-3 ">
						<div class="col-md-4 item">
							<label class='m-label'>业务类型:</label>
						</div>
						<div class="col-md-8">
							<select name="businessType" id="businessType" class="form-control">
								<option value=""></option>
								<c:forEach items="${ctb}" var="ct">
									<option value="${ct.codeInfoValue}">${ct.codeInfoName}</option>
								</c:forEach>
							</select>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-3 ">
						<div class="col-md-4 item">
							<label class='m-label'>员工姓名:</label>
						</div>
						<div class="col-md-8">
							<input type="text" id="staffName" name="staffName" class="form-control" placeholder="">
						</div>
					</div>
					<div class="col-md-3 ">
						<div class="col-md-4 item">
							<label class='m-label'>对象属性:</label>
						</div>
						<div class="col-md-8">
							<input type="text" id="objProperties" name="objProperties" class="form-control" placeholder="">
						</div>
					</div>
				</div><br>
				<div class="col-xs-12 form-group input-group btnArea">
					<button class="btn btn-warning m-btn" type="button" onclick="sysLogEvents.search()">查询</button>&nbsp;
					<button class="btn btn-default m-btn" type="reset">重置</button>
					<input class="btn btn-success m-btn pull-right" type="button" value="导出Excel" onclick="sysLogEvents.exportLog()">	
				</div>
				<div class="form-horizontal">
					<tags:datatable id="sysLogDatatable" storage="false"
						ajax="querySysLogListAjax" pagination="sysLogPagination"
						checkByClickRow="true" dataSet="sysLogSet"
						striped="true" cutLine="true" single="true" sortable="false"
						onRenderItem="sysLogEvents.renderItem"/>
					<tags:pagination pageSize="10" id="sysLogPagination" pageChoice="10" datatable="sysLogDatatable" />
				</div>
			</form>
		</tags:board>
	</tags:boards>
</body>
</html>